document.addEventListener( "plusready",  function()
{
var _FACE = "facedetect",
    B = window.plus.bridge;

    var facedetect =
    {
        startFaceDetect : function ()
            {
            var success = typeof successCallback !== 'function' ? null : function(args)
               {
                   successCallback(args);
               },
               fail = typeof errorCallback !== 'function' ? null : function(code)
               {
                   errorCallback(code);
               };
               callbackID = B.callbackId(success, fail);
               return B.exec(_FACE, "startFaceDetect", [callbackID]);
             }
    };
    window.plus.facedetect = facedetect;
}, true );


var FaceDetect = function(){
}

FaceDetect.prototype.startFaceDetect = function(){
    plus.facedetect.startFaceDetect();
}

